#include<cstdio>
using namespace std;
int main()
{
	int in, i = 0, max, min, sum = 0;
	while (scanf("%d", &in) != EOF)
	{
		++i;
		if (i == 1)
		{
			max = in;
			min = in;
		}
		max = in > max ? in : max;
		min = in < min ? in : min;
		sum += in;
	}	
	printf("%d %d %.3lf", min, max, (double) sum / i);	
	return 0;
}
